package com.geostar.constructionland.common.service.logs.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.geostar.constructionland.common.dao.LogMongoSptDao;
import com.geostar.constructionland.common.entity.logs.LogSpt;
import com.geostar.constructionland.common.mapper.logs.LogSptMapper;
import com.geostar.constructionland.common.service.logs.LogSptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LogSptServiceImpl extends ServiceImpl<LogSptMapper, LogSpt> implements LogSptService {

    @Autowired
    LogMongoSptDao logMongoSptDao;
    @Override
    public void saveLogSpt(LogSpt logSpt) {
        /**上传MongoDB数据*/
        logMongoSptDao.saveLogMongoSpt(logSpt.getLogMongoSpt());
        /**上传数据**/
        this.baseMapper.insert(logSpt);
    }
}
